 {extend name="layout:base" /}{block name="content"}

 <?php
$global=isSupperManagerForSession();
 ?>
 <link rel="stylesheet" type="text/css" href="/static/My97DatePicker/skin/WdatePicker.css" />
 <script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
    .yg_inp>input{margin-bottom: 10px;}
    #zc_detail table{margin:10px;}
    #zc_detail table tr td{
    border: 1px solid #ddd;
    height:40px;
    line-height:40px;
    padding-left:5px;
    padding-right:5px;
    }
    .ordertable input {width:90%;}
    .policeLable{padding:2px 4px;margin-left:4px;}
    #taskDate .taskDateItem{
    width:100%;height:40px;line-height:40px;margin:4px 0px;
    }
    #taskDate .taskDateItem .taskDateItemLeft{width:10%;float:left;}
    #taskDate .taskDateItem .taskDateItemRight1{width:70%;float:left;border:1px solid #139667;height: 42px;}
    #taskDate .taskDateItem .taskDateItemRight2{width:20%;float:right;}
    #taskDate .taskDateItem .opUsers img{width:22px;margin-left:5px;}

    #taskDate .taskDateItem .itemUser{padding: 4px 6px;background:#139667;margin-left:4px;color:white;}
    #taskDate .taskDateItem .clear{clear:both;width:0px;height:0px;overflow:hidden;}
    #taskDate .taskDateItem .jia,#taskDate .taskDateItem .jian{font-size:30px;cursor:pointer;font-weight:800;margin-left:5px;}

    .table tr th{text-align:center;}
</style>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/lang/zh-cn/zh-cn.js"></script>


<section class="topBanners">
         <div class="icon"></div>
         <div class="topBannersNav">
        <span data-url="/admin/txapply/lists" onclick="ContentLoadGo('/admin/txapply/lists')">提现管理</span>
         >
         <span data-url="/admin/txapply/infoData"  onclick="ContentLoadGo('/admin/txapply/infoData?id=<?php echo $id; ?>')"  >详情</span>
         
         </div>
</section>
 <section id="zc_detail">
     <input type="hidden" value="<?php echo $id; ?>" id="editId" />
   <table class="ordertable" border="0" cellspacing="0" style="width:100%;" cellpadding="0">
       <tr>
           <td width="120"><div align="right">提现时间</div></td>
           <td class="tr_cons">
               <?php echo $info['ctimeMapper'] ?>
           </td>
       </tr>
       <tr>
           <td width="120"><div align="right">提现类型</div></td>
           <td class="tr_cons">
              <?php echo $info['txTypeMapper'] ?>
           </td>
       </tr>

       <tr>
           <td><div align="right">提现人</div></td>
           <td>
               <?php echo $info['UserInfo']['nickname'] ?>
           </td>
       </tr>

       <tr>
           <td><div align="right">提现金额</div></td>
           <td>
               <?php echo $info['money'] ?>
           </td>
       </tr>

       <tr>
           <td><div align="right">支付宝姓名</div></td>
           <td>
               <?php echo $info['zfb_name'] ?>
           </td>
       </tr>

       <tr>
           <td><div align="right">支付宝账号</div></td>
           <td>
               <?php echo $info['zfb_account'] ?>
           </td>
       </tr>

       <tr>
           <td><div align="right">状态</div></td>
           <td>
               <?php echo $info['statsMapper'] ?>
           </td>
       </tr>


       <tr>
         <td><div align="right">审核时间</div></td>
         <td>
        
            <?php echo $info['stimeMapper']; ?>
         </td>
      </tr>
       <tr>
           <td><div align="right">打款时间</div></td>
           <td>

               <?php echo $info['ptimeMapper']; ?>
           </td>
       </tr>

       <tr>
           <td><div align="right">操作人</div></td>
           <td>
               <?php echo $info['UserInfo1']['nickname'] ?>
           </td>
       </tr>

       <td colspan="2" style="height:50px;text-align:center;">
           <?php
                if($info['stats']==0)
                {
                    if( ( in_array(5103,$ruleLists) || $global==1) )
                    {
           ?>
           <input type="button" power="70000"  style="width:80px;margin-top:4px;margin-bottom:4px;padding:0px;"  value="审核通过" class="link_btn edit_ok"/>
           <input type="button" power="70000"  style="width:80px;margin-top:4px;margin-bottom:4px;padding:0px;"  value="审核不通过" class="link_btn edit_err"/>
            <?php
                    }
                }
            ?>
           <?php
                if($info['stats']==1 || $info['stats']==4)
                {
                    if( ( in_array(5104,$ruleLists) || $global==1) )
                    {
           ?>
           <input type="button" power="70000"  style="width:80px;margin-top:4px;margin-bottom:4px;padding:0px;"  value="打款" class="link_btn edit_money"/>
           <?php
                    }
                }
            ?>
           <?php
                if($info['stats']==4)
                {
                    if( ( in_array(5104,$ruleLists) || $global==1) )
                    {
           ?>
           <input type="button" power="70000"  style="width:80px;margin-top:4px;margin-bottom:4px;padding:0px;"  value="退回余额" class="link_btn edit_nomoney"/>
           <?php
                    }
                }
            ?>
       </td>
   </table>
     <div style="width:98%;height:30px;font-size:16px;padding-left:18px;">跟踪：</div>
     <div id="orderLog" style="width:98%;margin-left:auto;margin-right:auto;line-height: 30px;font-size:16px;border:1px solid #ccc;padding:10px 0px;">
         <?php
            foreach($orderLogLists as $k=>$v)
         {
         ?>
         <div id="orderLogItem" style="width:100%;margin-left:auto;margin-right:auto;line-height: 30px;height:30px;padding-left:10px;">
             <span style='margin-right:10px;'><?php echo $v['ctime']; ?></span>
             <span style='margin-right:10px;'><?php echo $v['op_username']; ?></span>
             <span style='margin-right:10px;'><?php echo $v['act']; ?></span>
         </div>
         <?php
            }
         ?>
     </div>
 </section>
</script>
<script type="text/javascript">
function myResearch(){
   var url="/admin/txapply/infoData";
   var id=$("#editId").val();
   ContentLoadGo(url+"?id="+id);
}

$(function(){

   $(".research").unbind().bind("click",function(){
       var page =$(this).attr("page");
       $("#cpage").val(page);
       myResearch();
   });

   $(".info").click(function(){
       var that =this;
       var url="/admin/txapply/infoData";
       var id=$(that).parent().parent().attr('data-id');
       var param={
               id:id
       };
       ContentGet(url,param)
   });

    $(".edit_ok").unbind().bind("click",function(){
        var that =this;
        var url="/admin/txapply/edit_ok";
        var id="<?php echo $id; ?>";
        var param={
            id:id,
            sys_opt:'editData'//后台判断编辑操作
        };
        cofirmsss_tishi(1,'您确定要执行该操作吗?',function(id) {
        AjaxRequest(url,param,function(data){
            if(data.err==0) {
                SuccessTiShi("操作成功");
                myResearch();
            } else {
                ErrTiShi(data.msg);
            }
        });
        });
    });
    $(".edit_err").unbind().bind("click",function(){
        var that =this;
        var url="/admin/txapply/edit_err";
        var id="<?php echo $id; ?>";
        var param={
            id:id,
            sys_opt:'editData'//后台判断编辑操作
        };
        cofirmsss_tishi(1,'您确定要执行该操作吗?',function(id) {
        AjaxRequest(url,param,function(data){
            if(data.err==0) {
                SuccessTiShi("操作成功");
                myResearch();
            } else {
                ErrTiShi(data.msg);
            }
        });
        });
    });
    $(".edit_money").unbind().bind("click",function(){
        var that =this;
        var url="/admin/txapply/edit_money";
        var id="<?php echo $id; ?>";
        var param={
            id:id,
            sys_opt:'editData'//后台判断编辑操作
        };
        cofirmsss_tishi(1,'您确定要执行该操作吗?',function(id) {
            AjaxRequest(url, param, function (data) {
                if (data.err == 0) {
                    SuccessTiShi("操作成功");
                    myResearch();
                } else {
                    ErrTiShi(data.msg);
                }
            });
        });
    });
    $(".edit_nomoney").unbind().bind("click",function(){
        var that =this;
        var url="/admin/txapply/edit_nomoney";
        var id="<?php echo $id; ?>";
        var param={
            id:id,
            sys_opt:'editData'//后台判断编辑操作
        };
        cofirmsss_tishi(1,'您确定要执行该操作吗?',function(id) {
        AjaxRequest(url,param,function(data){
            if(data.err==0) {
                SuccessTiShi("操作成功");
                myResearch();
            } else {
                ErrTiShi(data.msg);
            }
        });
        });
    });

   $(".topBannerItem").click(function(){
       var attArr = $(this).attr();
       goToSelfLink(attArr);
   });
});
</script>
{/block}
	  